// 组件 -> commit -> mutation ->state ->视图变更 -> 响应式
// dispatch -> type(actionType) -> 某一个action
// action -> commit调用 -> mutation
// mutation -> change -> state
// render方案: state ->数据流 ->视图

import { createStore } from 'vuex'
import state from './state'
import mutations from './mutations'
import actions from './actions'

export default createStore({
    state,
    mutations,
    actions,
})
